const { merge } = require('webpack-merge')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const common = require('./webpack.common')


const proConfig = {
  mode:'production',
  devtool: 'cheap-module-source-map',
  plugins: [
    new CopyWebpackPlugin(['public'])
  ]
}

module.exports = merge(common, proConfig)